home *** CD-ROM | disk | FTP | other *** search
-
- DIR.BAS
-
- This is my first attempt to give back a small piece of what I've
- gleaned from the SHAREWARE community. So, if this documentation seems
- somewhat elementary in style, please forgive me, I'm STILL learning.
- I created DIR.BAS out of my learning about DOS functions called
- interrupts, as well as out of a frustration with QuickBASIC's lack of
- directory-getting abilities.
- After creating DIR.BAS, I wanted to create a 'demo' of it's ease
- of use and it's practicality. Hence, DIRDEMO.BAS was born. After
- spending more time on DIRDEMO than I had getting DIR.BAS running, I
- found that DIRDEMO was even more useful for my everyday program
- development needs. I have a 386SX at home with 160MB of hard disk
- storage, which (for now) is more than enough for me. But when I
- purchased my 386SX Notebook only 80MB would fit within my budget. I
- examined my 'road-needs' for my consulting/programming business on my
- Notebook, but didn't have any tools to see how many bytes a directory
- WITH ALL IT'S SUBDIRECTORIES took. So, I added this functionality to
- DIRDEMO and now all I have to do is position the selection line on the
- 'menu', press F2, and I know whether to zap that dude or not. (By the
- way, yes I DO use ZIP first to save space on my HD, but nowadays every
- program you load can do everything and more than you bought it for and
- therefore takes up mega-megabytes.)
- Most of the code is pretty well self-documented and (I hope) easy
- to understand. If you use the COMMAND LINE CREATION section of DIR.BAS's
- source, you should be able to implement it fairly easily.
- As I stated in the beginning of this DOC, this is a small attempt at
- repaying the SHAREWARE community for all that I have learned in the past
- few years regarding technique, style, and simple understanding (and as
- you may notice, I AM STILL learning! - SOMEDAY you may see my name signed
- below a tech article in a PC rag, but not quite yet!). I ask nothing
- monetarily for this code. Use it, pass it on, fix it up (if you do this,
- PLEEEASE send me an example of how you improved on it - I am starting
- to do this for a living, and have much to learn!), BUT (and you knew this
- was coming somewhere):
-
- The FAIRCHILD rule of tough:
-
- THIS SOFTWARE IS TO BE USED AT THE USERS' OWN RISK! THERE
- ARE NO WARRANTIES IMPLIED OR OTHERWISE. FAIRCHILD COMPUTER
- SERVICES ACCEPTS NO RESPONSIBILITIES WHATSOEVER FOR THIS
- SOFTWARE'S RESULTS. IF THIS SOFTWARE RENDERS YOUR COMPUTER
- OR OTHER DEVICE INOPERABLE, POKES YOU IN THE EYE, OR CALLS
- YOUR MOTHER-IN-LAW TERRIBLE, IRRECONCILABLE NAMES, FAIRCHILD
- COMPUTER SERVICES MAINTAINS NO LIABILITY AT ALL!
- (Though I might suggest a bouquet of flowers if it does the
- mother-in-law thing.)
-
- Now, for those of you who will feel tremendously guilty for using
- this code without SOME sort of remuneration, I offer this:
-
- If you send me $5, it will constitute a full payment for
- the work that has gone into DIR.BAS and DIRDEMO.BAS. I
- will then put your name and address on my mailing list for
- announcements of future programming developments (unless
- you don't want me to!). If you send me a blank diskette
- (any size) with $6, I will also send you some other useful
- programs/subroutines that I have written using interrupts
- (some examples include: GetProcessor, Pause, DiskSize,
- ResetDisk, GetDiskInfo, GetPCType, DOSVersionNumber,
- CurrentDir, ExpFree, VideoMode, and others...). If you
- send $7, I'll put them on a diskette (size of your choice)
- for you. (I hope to eventually have just about ALL the
- available DOS interrupts in accessible BASIC formats.)
-
-
- That's it! Enjoy!!
-
-
- Fairchild Computer Services
- Route 5, Box 523-12
- Wills Point, TX 75169
- (903) 873-2114
-